# 命名关键字参数
def person(name,age,*,city,gender):
    print(name,age,city,gender)
# 正常调用
person('Tom',28,city='Beijng',gender='Male')
# 省略关键字会报错
# person('Tom',29,'Beijing','Male')

# 如果函数定义中已经有了一个可变参数，后面跟着的命名关键字参数就不再需要一个特殊分隔符*了
def person1(name,age,*arg,city,gender):
    print(name,age,arg,city,gender)

person1('Jim',29,city='Tianjin',gender='Male')
person1('Ann',28,'tall',city='New York',gender='Female')